package com.taobao.txc.resourcemanager.b;

import com.taobao.txc.common.TxcContext;
import com.taobao.txc.parser.b.b;
import com.taobao.txc.resourcemanager.a.c;
import com.taobao.txc.resourcemanager.b.b.f;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLWarning;
import java.sql.Statement;

public class h
  implements com.taobao.txc.resourcemanager.b.a.d
{
  private static final c<Integer> d = new c(com.taobao.txc.resourcemanager.b.b.h.a());
  private static final c<Integer> e = new c(f.a());
  private static final c<Integer> f = new c(com.taobao.txc.resourcemanager.b.b.e.a());
  private static final c<Integer> g = new c(com.taobao.txc.resourcemanager.b.b.g.a());
  private static final c<ResultSet> h = new c(com.taobao.txc.resourcemanager.b.b.d.a());
  protected String a;
  protected final Statement b;
  protected final com.taobao.txc.resourcemanager.b.a.a c;
  private final g i = new g();
  
  public h(Statement paramStatement, com.taobao.txc.resourcemanager.b.a.a parama)
  {
    this.b = paramStatement;
    this.c = parama;
  }
  
  public void cancel()
  {
    this.b.cancel();
  }
  
  public void clearWarnings()
  {
    this.b.clearWarnings();
  }
  
  public void close()
  {
    this.b.close();
  }
  
  public boolean execute(String paramString)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.execute(paramString);
    }
    if (b.a(paramString))
    {
      executeQuery(paramString);
      return true;
    }
    executeUpdate(paramString);
    return false;
  }
  
  public boolean execute(String paramString, int paramInt)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.execute(paramString, paramInt);
    }
    if (b.a(paramString))
    {
      executeQuery(paramString);
      return true;
    }
    executeUpdate(paramString, paramInt);
    return false;
  }
  
  public boolean execute(String paramString, int[] paramArrayOfInt)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.execute(paramString, paramArrayOfInt);
    }
    if (b.a(paramString))
    {
      executeQuery(paramString);
      return true;
    }
    executeUpdate(paramString, paramArrayOfInt);
    return false;
  }
  
  public boolean execute(String paramString, String[] paramArrayOfString)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.execute(paramString, paramArrayOfString);
    }
    if (b.a(paramString))
    {
      executeQuery(paramString);
      return true;
    }
    executeUpdate(paramString, paramArrayOfString);
    return false;
  }
  
  public void addBatch(String paramString)
  {
    this.b.addBatch(paramString);
  }
  
  public void clearBatch()
  {
    this.b.clearBatch();
  }
  
  public int[] executeBatch()
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeBatch();
    }
    throw new com.taobao.txc.common.b.e();
  }
  
  public ResultSet executeQuery(String paramString)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeQuery(paramString);
    }
    a(paramString);
    return (ResultSet)h.a(this.c, this, "executeQuery", new Object[] { paramString });
  }
  
  public int executeUpdate(String paramString)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeUpdate(paramString);
    }
    a(paramString);
    return ((Integer)d.a(this.c, this, "executeUpdate", new Object[] { paramString })).intValue();
  }
  
  public int executeUpdate(String paramString, int paramInt)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeUpdate(paramString, paramInt);
    }
    a(paramString);
    return ((Integer)e.a(this.c, this, "executeUpdate", new Object[] { paramString, Integer.valueOf(paramInt) })).intValue();
  }
  
  public int executeUpdate(String paramString, int[] paramArrayOfInt)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeUpdate(paramString, paramArrayOfInt);
    }
    a(paramString);
    return ((Integer)f.a(this.c, this, "executeUpdate", new Object[] { paramString, paramArrayOfInt })).intValue();
  }
  
  public int executeUpdate(String paramString, String[] paramArrayOfString)
  {
    if ((!TxcContext.j()) || (!com.taobao.txc.common.d.a.a())) {
      return this.b.executeUpdate(paramString, paramArrayOfString);
    }
    a(paramString);
    return ((Integer)g.a(this.c, this, "executeUpdate", new Object[] { paramString, paramArrayOfString })).intValue();
  }
  
  public Connection getConnection()
  {
    return this.b.getConnection();
  }
  
  public int getFetchDirection()
  {
    return this.b.getFetchDirection();
  }
  
  public int getFetchSize()
  {
    return this.b.getFetchSize();
  }
  
  public ResultSet getGeneratedKeys()
  {
    return this.b.getGeneratedKeys();
  }
  
  public int getMaxFieldSize()
  {
    return this.b.getMaxFieldSize();
  }
  
  public int getMaxRows()
  {
    return this.b.getMaxRows();
  }
  
  public boolean getMoreResults()
  {
    return this.b.getMoreResults();
  }
  
  public boolean getMoreResults(int paramInt)
  {
    return this.b.getMoreResults(paramInt);
  }
  
  public int getQueryTimeout()
  {
    return this.b.getQueryTimeout();
  }
  
  public ResultSet getResultSet()
  {
    return this.b.getResultSet();
  }
  
  public int getResultSetConcurrency()
  {
    return this.b.getResultSetConcurrency();
  }
  
  public int getResultSetHoldability()
  {
    return this.b.getResultSetHoldability();
  }
  
  public int getResultSetType()
  {
    return this.b.getResultSetType();
  }
  
  public int getUpdateCount()
  {
    return this.b.getUpdateCount();
  }
  
  public SQLWarning getWarnings()
  {
    return this.b.getWarnings();
  }
  
  public boolean isClosed()
  {
    return this.b.isClosed();
  }
  
  public boolean isPoolable()
  {
    return this.b.isPoolable();
  }
  
  public void setCursorName(String paramString)
  {
    this.b.setCursorName(paramString);
  }
  
  public void setEscapeProcessing(boolean paramBoolean)
  {
    this.b.setEscapeProcessing(paramBoolean);
  }
  
  public void setFetchDirection(int paramInt)
  {
    this.b.setFetchDirection(paramInt);
  }
  
  public void setFetchSize(int paramInt)
  {
    this.b.setFetchSize(paramInt);
  }
  
  public void setMaxFieldSize(int paramInt)
  {
    this.b.setMaxFieldSize(paramInt);
  }
  
  public void setMaxRows(int paramInt)
  {
    this.b.setMaxRows(paramInt);
  }
  
  public void setPoolable(boolean paramBoolean)
  {
    this.b.setPoolable(paramBoolean);
  }
  
  public void setQueryTimeout(int paramInt)
  {
    this.b.setQueryTimeout(paramInt);
  }
  
  public boolean isWrapperFor(Class<?> paramClass)
  {
    return this.b.isWrapperFor(paramClass);
  }
  
  public <T> T unwrap(Class<T> paramClass)
  {
    return this.b.unwrap(paramClass);
  }
  
  public com.taobao.txc.resourcemanager.b.a.a e()
  {
    return this.c;
  }
  
  public Statement f()
  {
    return this.b;
  }
  
  public void closeOnCompletion()
  {
    throw new com.taobao.txc.common.b.e();
  }
  
  public boolean isCloseOnCompletion()
  {
    throw new com.taobao.txc.common.b.e();
  }
  
  public String g()
  {
    return this.a;
  }
  
  public void a(String paramString)
  {
    this.a = paramString;
  }
  
  public String h()
  {
    return this.i.a();
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.resourcemanager.b.h
 * JD-Core Version:    0.7.0.1
 */